class GlobalConfig{

  static const bool debug = true;
}

class Debug {

  static void log(String content) {
    if (GlobalConfig.debug) {
      print(content);
    } else {

    }
  }
}

  bool doubleEqual(double a, double b, {double epsilon = 0.00001}) {
  return (a - b).abs() < epsilon;
}

int getDateTime()=> dateTime2Int(DateTime.now());

int dateTime2Int(DateTime date)=>date.year * 10000 + date.month * 100 + date.day;

bool isStringNotEmpty(String? str) => str?.isNotEmpty?? false;

bool isStringEmpty(String? str) => str?.isEmpty?? true;